package com.example.demo.enity;

import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class JltdInfoExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public JltdInfoExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andTidIsNull() {
            addCriterion("TId is null");
            return (Criteria) this;
        }

        public Criteria andTidIsNotNull() {
            addCriterion("TId is not null");
            return (Criteria) this;
        }

        public Criteria andTidEqualTo(Integer value) {
            addCriterion("TId =", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidNotEqualTo(Integer value) {
            addCriterion("TId <>", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidGreaterThan(Integer value) {
            addCriterion("TId >", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidGreaterThanOrEqualTo(Integer value) {
            addCriterion("TId >=", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidLessThan(Integer value) {
            addCriterion("TId <", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidLessThanOrEqualTo(Integer value) {
            addCriterion("TId <=", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidIn(List<Integer> values) {
            addCriterion("TId in", values, "tid");
            return (Criteria) this;
        }

        public Criteria andTidNotIn(List<Integer> values) {
            addCriterion("TId not in", values, "tid");
            return (Criteria) this;
        }

        public Criteria andTidBetween(Integer value1, Integer value2) {
            addCriterion("TId between", value1, value2, "tid");
            return (Criteria) this;
        }

        public Criteria andTidNotBetween(Integer value1, Integer value2) {
            addCriterion("TId not between", value1, value2, "tid");
            return (Criteria) this;
        }

        public Criteria andTuidIsNull() {
            addCriterion("Tuid is null");
            return (Criteria) this;
        }

        public Criteria andTuidIsNotNull() {
            addCriterion("Tuid is not null");
            return (Criteria) this;
        }

        public Criteria andTuidEqualTo(Integer value) {
            addCriterion("Tuid =", value, "tuid");
            return (Criteria) this;
        }

        public Criteria andTuidNotEqualTo(Integer value) {
            addCriterion("Tuid <>", value, "tuid");
            return (Criteria) this;
        }

        public Criteria andTuidGreaterThan(Integer value) {
            addCriterion("Tuid >", value, "tuid");
            return (Criteria) this;
        }

        public Criteria andTuidGreaterThanOrEqualTo(Integer value) {
            addCriterion("Tuid >=", value, "tuid");
            return (Criteria) this;
        }

        public Criteria andTuidLessThan(Integer value) {
            addCriterion("Tuid <", value, "tuid");
            return (Criteria) this;
        }

        public Criteria andTuidLessThanOrEqualTo(Integer value) {
            addCriterion("Tuid <=", value, "tuid");
            return (Criteria) this;
        }

        public Criteria andTuidIn(List<Integer> values) {
            addCriterion("Tuid in", values, "tuid");
            return (Criteria) this;
        }

        public Criteria andTuidNotIn(List<Integer> values) {
            addCriterion("Tuid not in", values, "tuid");
            return (Criteria) this;
        }

        public Criteria andTuidBetween(Integer value1, Integer value2) {
            addCriterion("Tuid between", value1, value2, "tuid");
            return (Criteria) this;
        }

        public Criteria andTuidNotBetween(Integer value1, Integer value2) {
            addCriterion("Tuid not between", value1, value2, "tuid");
            return (Criteria) this;
        }

        public Criteria andTimeIsNull() {
            addCriterion("Time is null");
            return (Criteria) this;
        }

        public Criteria andTimeIsNotNull() {
            addCriterion("Time is not null");
            return (Criteria) this;
        }

        public Criteria andTimeEqualTo(Date value) {
            addCriterionForJDBCDate("Time =", value, "time");
            return (Criteria) this;
        }

        public Criteria andTimeNotEqualTo(Date value) {
            addCriterionForJDBCDate("Time <>", value, "time");
            return (Criteria) this;
        }

        public Criteria andTimeGreaterThan(Date value) {
            addCriterionForJDBCDate("Time >", value, "time");
            return (Criteria) this;
        }

        public Criteria andTimeGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("Time >=", value, "time");
            return (Criteria) this;
        }

        public Criteria andTimeLessThan(Date value) {
            addCriterionForJDBCDate("Time <", value, "time");
            return (Criteria) this;
        }

        public Criteria andTimeLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("Time <=", value, "time");
            return (Criteria) this;
        }

        public Criteria andTimeIn(List<Date> values) {
            addCriterionForJDBCDate("Time in", values, "time");
            return (Criteria) this;
        }

        public Criteria andTimeNotIn(List<Date> values) {
            addCriterionForJDBCDate("Time not in", values, "time");
            return (Criteria) this;
        }

        public Criteria andTimeBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("Time between", value1, value2, "time");
            return (Criteria) this;
        }

        public Criteria andTimeNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("Time not between", value1, value2, "time");
            return (Criteria) this;
        }

        public Criteria andTzidIsNull() {
            addCriterion("Tzid is null");
            return (Criteria) this;
        }

        public Criteria andTzidIsNotNull() {
            addCriterion("Tzid is not null");
            return (Criteria) this;
        }

        public Criteria andTzidEqualTo(Integer value) {
            addCriterion("Tzid =", value, "tzid");
            return (Criteria) this;
        }

        public Criteria andTzidNotEqualTo(Integer value) {
            addCriterion("Tzid <>", value, "tzid");
            return (Criteria) this;
        }

        public Criteria andTzidGreaterThan(Integer value) {
            addCriterion("Tzid >", value, "tzid");
            return (Criteria) this;
        }

        public Criteria andTzidGreaterThanOrEqualTo(Integer value) {
            addCriterion("Tzid >=", value, "tzid");
            return (Criteria) this;
        }

        public Criteria andTzidLessThan(Integer value) {
            addCriterion("Tzid <", value, "tzid");
            return (Criteria) this;
        }

        public Criteria andTzidLessThanOrEqualTo(Integer value) {
            addCriterion("Tzid <=", value, "tzid");
            return (Criteria) this;
        }

        public Criteria andTzidIn(List<Integer> values) {
            addCriterion("Tzid in", values, "tzid");
            return (Criteria) this;
        }

        public Criteria andTzidNotIn(List<Integer> values) {
            addCriterion("Tzid not in", values, "tzid");
            return (Criteria) this;
        }

        public Criteria andTzidBetween(Integer value1, Integer value2) {
            addCriterion("Tzid between", value1, value2, "tzid");
            return (Criteria) this;
        }

        public Criteria andTzidNotBetween(Integer value1, Integer value2) {
            addCriterion("Tzid not between", value1, value2, "tzid");
            return (Criteria) this;
        }

        public Criteria andCheckedIsNull() {
            addCriterion("Checked is null");
            return (Criteria) this;
        }

        public Criteria andCheckedIsNotNull() {
            addCriterion("Checked is not null");
            return (Criteria) this;
        }

        public Criteria andCheckedEqualTo(Boolean value) {
            addCriterion("Checked =", value, "checked");
            return (Criteria) this;
        }

        public Criteria andCheckedNotEqualTo(Boolean value) {
            addCriterion("Checked <>", value, "checked");
            return (Criteria) this;
        }

        public Criteria andCheckedGreaterThan(Boolean value) {
            addCriterion("Checked >", value, "checked");
            return (Criteria) this;
        }

        public Criteria andCheckedGreaterThanOrEqualTo(Boolean value) {
            addCriterion("Checked >=", value, "checked");
            return (Criteria) this;
        }

        public Criteria andCheckedLessThan(Boolean value) {
            addCriterion("Checked <", value, "checked");
            return (Criteria) this;
        }

        public Criteria andCheckedLessThanOrEqualTo(Boolean value) {
            addCriterion("Checked <=", value, "checked");
            return (Criteria) this;
        }

        public Criteria andCheckedIn(List<Boolean> values) {
            addCriterion("Checked in", values, "checked");
            return (Criteria) this;
        }

        public Criteria andCheckedNotIn(List<Boolean> values) {
            addCriterion("Checked not in", values, "checked");
            return (Criteria) this;
        }

        public Criteria andCheckedBetween(Boolean value1, Boolean value2) {
            addCriterion("Checked between", value1, value2, "checked");
            return (Criteria) this;
        }

        public Criteria andCheckedNotBetween(Boolean value1, Boolean value2) {
            addCriterion("Checked not between", value1, value2, "checked");
            return (Criteria) this;
        }

        public Criteria andJlidIsNull() {
            addCriterion("Jlid is null");
            return (Criteria) this;
        }

        public Criteria andJlidIsNotNull() {
            addCriterion("Jlid is not null");
            return (Criteria) this;
        }

        public Criteria andJlidEqualTo(Integer value) {
            addCriterion("Jlid =", value, "jlid");
            return (Criteria) this;
        }

        public Criteria andJlidNotEqualTo(Integer value) {
            addCriterion("Jlid <>", value, "jlid");
            return (Criteria) this;
        }

        public Criteria andJlidGreaterThan(Integer value) {
            addCriterion("Jlid >", value, "jlid");
            return (Criteria) this;
        }

        public Criteria andJlidGreaterThanOrEqualTo(Integer value) {
            addCriterion("Jlid >=", value, "jlid");
            return (Criteria) this;
        }

        public Criteria andJlidLessThan(Integer value) {
            addCriterion("Jlid <", value, "jlid");
            return (Criteria) this;
        }

        public Criteria andJlidLessThanOrEqualTo(Integer value) {
            addCriterion("Jlid <=", value, "jlid");
            return (Criteria) this;
        }

        public Criteria andJlidIn(List<Integer> values) {
            addCriterion("Jlid in", values, "jlid");
            return (Criteria) this;
        }

        public Criteria andJlidNotIn(List<Integer> values) {
            addCriterion("Jlid not in", values, "jlid");
            return (Criteria) this;
        }

        public Criteria andJlidBetween(Integer value1, Integer value2) {
            addCriterion("Jlid between", value1, value2, "jlid");
            return (Criteria) this;
        }

        public Criteria andJlidNotBetween(Integer value1, Integer value2) {
            addCriterion("Jlid not between", value1, value2, "jlid");
            return (Criteria) this;
        }

        public Criteria andZpidIsNull() {
            addCriterion("Zpid is null");
            return (Criteria) this;
        }

        public Criteria andZpidIsNotNull() {
            addCriterion("Zpid is not null");
            return (Criteria) this;
        }

        public Criteria andZpidEqualTo(Integer value) {
            addCriterion("Zpid =", value, "zpid");
            return (Criteria) this;
        }

        public Criteria andZpidNotEqualTo(Integer value) {
            addCriterion("Zpid <>", value, "zpid");
            return (Criteria) this;
        }

        public Criteria andZpidGreaterThan(Integer value) {
            addCriterion("Zpid >", value, "zpid");
            return (Criteria) this;
        }

        public Criteria andZpidGreaterThanOrEqualTo(Integer value) {
            addCriterion("Zpid >=", value, "zpid");
            return (Criteria) this;
        }

        public Criteria andZpidLessThan(Integer value) {
            addCriterion("Zpid <", value, "zpid");
            return (Criteria) this;
        }

        public Criteria andZpidLessThanOrEqualTo(Integer value) {
            addCriterion("Zpid <=", value, "zpid");
            return (Criteria) this;
        }

        public Criteria andZpidIn(List<Integer> values) {
            addCriterion("Zpid in", values, "zpid");
            return (Criteria) this;
        }

        public Criteria andZpidNotIn(List<Integer> values) {
            addCriterion("Zpid not in", values, "zpid");
            return (Criteria) this;
        }

        public Criteria andZpidBetween(Integer value1, Integer value2) {
            addCriterion("Zpid between", value1, value2, "zpid");
            return (Criteria) this;
        }

        public Criteria andZpidNotBetween(Integer value1, Integer value2) {
            addCriterion("Zpid not between", value1, value2, "zpid");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}